#include <stdio.h>

int main() {

    char sa[] = "This is a string";
    sa[0] = 't';
    char *sp = "This is a string";
    sp[0] = 't'; // 非法内存访问。字符串常量不允许被修改

    puts(sa);
    puts(sp);

   // sa = "another String"; // 非法，数组名是常量，不能对它赋值 应该用  strcpy (sa, "Hello");

    sp = "another String";
    puts(sp);
}